//
// Created by 沙龙腾 on 2023/8/20.
// 数组导致

#include "../head/util.h"

//减而治之  包括low 和 high
void reverseRecu(int *a,int low,int high)
{
    int tmp = 0;
    if(low >= high){
        return;
    } else{
        swap(&a[low], &a[high]);
        reverseRecu(a,low+1,high-1);
    }
}
void reverseIter(int *a,int low,int high)
{
    while(low < high){
        swap(&low,&high);
    }
}